/**
 *
 * @author The_MHMoritz3
 * @version 1.0
 * @date 19.10.2014
 */

import net.canarymod.plugin.Plugin;
import net.canarymod.Canary;
import net.canarymod.commandsys.CommandOwner;

public class StartUp extends Plugin
{
    @Override
    public boolean enable()
    {
        Canary.hooks().registerListener(new Player.HelloListener(), this);
        Canary.hooks().registerListener(new Player.BlockBreakerListener(), this);
        try
        {
            Canary.commands().registerCommands(new Commands.MessagesCommands(), this, false);
        }catch(net.canarymod.commandsys.CommandDependencyException ex)
        {
            System.out.println("Error");
        }
        System.out.println("Enabling "+getName() + " Version " + getVersion());
        System.out.println("Authored by "+getAuthor());
        return true;
    }
    
    @Override
    public void disable()
    {
        //Destrucktor
    }
}
